package org.domain.sigepac.Entity;

import java.util.Set;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.OneToMany;

@Entity
@Inheritance(strategy=InheritanceType.TABLE_PER_CLASS)
@DiscriminatorValue("destino")
public class GrupoDestino extends GrupoMotivo {

	private static final long serialVersionUID = -1325710835213702105L;


	@OneToMany(fetch = FetchType.LAZY, mappedBy = "grupo")
	private Set<MotivoDestino> motivoDestinos;


	public Set<MotivoDestino> getMotivoDestinos() {
		return motivoDestinos;
	}

	public void setMotivoDestinos(Set<MotivoDestino> motivoDestinos) {
		this.motivoDestinos = motivoDestinos;
	}
}
